﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace CSharp.Libs.Misc.JSON2Code
{
    /// <summary>puts
    /// 
    /// </summary>
    public partial class frmCodeGeneratorOutput : Form
    {
        #region declarations
        private CodeGenerator _CG = null;
        #endregion



        #region constructor / terminator
        public frmCodeGeneratorOutput(
            CodeGenerator CG)
        {
            InitializeComponent();

            _CG = CG;
            chkCreateKeyConstants.Checked = _CG.CreateKeyConstants;
            chkCreateOnPropertyChanged.Checked = _CG.CreateOnPropertyChanged;

            txtOutput.Text = _CG.Output;
        }
        #endregion



        #region event handling
        private void chkCreateKeyConstants_CheckedChanged(object sender, EventArgs e)
        {
            _CG.CreateKeyConstants = chkCreateKeyConstants.Checked;
            txtOutput.Text = _CG.Output;
        }

        private void chkCreateOnPropertyChanged_CheckedChanged(object sender, EventArgs e)
        {
            _CG.CreateOnPropertyChanged = chkCreateOnPropertyChanged.Checked;
            txtOutput.Text = _CG.Output;
        }
        #endregion



        #region private functions
        #endregion



        #region interface
        #region properties
        #endregion

        #region methods
        #endregion
        #endregion
   }
}
